<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %>
<%@taglib prefix="mvc" uri="http://www.springframework.org/tags/form" %>
<%@taglib prefix="fmt" uri="http://www.springframework.org/tags" %>
<%
    String path = request.getContextPath();
    String basePath = request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort() + path + "/";
%>
<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8"/>
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <link rel="stylesheet" type="text/css" href="/css/base.css"/>
    <link rel="stylesheet" type="text/css" href="/css/dept/deptManagement.css"/>
    <link rel="stylesheet" type="text/css" href="/lib/easyui/themes/easyui.css"/>
    <link rel="stylesheet" type="text/css" href="/lib/easyui/themes/icon.css"/>
    <link rel="stylesheet" type="text/css" href="/css/news/center.css"/>
    <link rel="stylesheet" href="/css/notice/noticeManagement.css">
    <link rel="stylesheet" type="text/css" href="../../lib/laydate.css"/>
    <link rel="stylesheet" href="/css/workflow/work/automaticNumbering.css">
    <link rel="stylesheet" href="/css/notice/noticeManagement.css">
    <script src="/js/jquery/jquery-1.9.1.js" type="text/javascript" charset="utf-8"></script>
    <script src="/js/edu/base.js" type="text/javascript" charset="utf-8"></script>
    <script src="/lib/laydate.js"></script>
    <script type="text/javascript" src="/lib/easyui/jquery.easyui.min.js"></script>
    <script type="text/javascript" src="/lib/easyui/tree.js"></script>
    <%--<script type="text/javascript" src="/js/index.js"></script>--%>
    <script src="/lib/layer/layer.js?20201106"></script>
    <script src="/lib/jquery.form.min.js"></script>

    <title>党费管理</title>
    <style>
        html,
        body,
        .wrap{
            width:100%;
            height:100%;
            /* overflow: hidden;*/
        }
        .noDatas {
            margin-top: 10px;
        }

        .noDatas_pic {
            margin-top: 20%;
        }

        .noData_out {
            margin: 0 auto;
            text-align: center;
        }

        .foot_span_show {
            float: right;
            color: white;
            line-height: 28px;
            margin-right: 15px;
            cursor: pointer
        }
        .head_rig  .import {
            width: 56px;
            height: 30px;
            font-size: 13px !important;
            cursor: pointer;
            background-repeat: no-repeat;
            background-image: url(../img/sys/import.png);
            padding-left: 25px;
        }
        .head_rig  .export {
            width: 56px;
            height: 30px;
            font-size: 13px !important;
            cursor: pointer;
            background-repeat: no-repeat;
            background-image: url(../img/sys/export.png);
            padding-left: 25px;
        }
        .head_rig .new_dept {
            width: 130px;
            height: 30px;
            font-size: 13px !important;
            background-image:url(../img/sys/dept_personnel.png);
            cursor: pointer;
            background-repeat: no-repeat;
            color: #fff;
        }

        .inputlayout{
            height: 493px;
        }

        .head_rig .new_dept1 {
            width: 130px;
            height: 30px;
            font-size: 13px !important;
            cursor: pointer;
            background-repeat: no-repeat;
            color: #fff;
        }

        #delete_ {
            padding-left: 17px;
            background-image: url(../../img/sys/dept_personneldel.png);
        }

        #cont_left::-webkit-scrollbar {
            width: 0px;
        }

        #cont_left::-webkit-scrollbar-corner {
            /*background: #82AFFF;*/
        }
        #cont_left .pick>li:hover{
            background:#e8f4fc;
        }

        .head_rig {
            width: 29%;
            margin-top: 0px;
            float: right;
        }
        .head_rig h1 {
            float: left;
            margin-right:20px;
        }

        .inp {
            height: 24px;
        }

        .search {
            width: 72px;
            height: 29px;
            margin-top: 16px;
            background: #fff;
        }

        .search h1 {
            text-align: center;
            color: #fff;
            font-size: 14px;
            line-height: 28px;
            background-image: url(../img/workflow/btn_check_nor_03.png);
            background-repeat: no-repeat;
        }

        .cont {
            width: 102%;
            height: 95%;
            overflow-y: scroll;
        }

        .head {
            border-bottom: 1px solid #dedede;
            height: 45px;
        }
        .new_excell_pic {
            border-radius: 0;
            border: none;
            width: 73px;
            height: 73px;
            margin: 10px 24px 10px 20px;
        }

        .head_rig h1 :hover {
            cursor: pointer;
        }

        .deldel {
            color: #fff;
            font-size: 12px;
            float: right;
            margin-right: 10px;
            margin-left: 5px;
            line-height: 28px;
            cursor: pointer;
        }

        .footer_span_space {
            color: #fff;
            font-size: 12px;
            float: right;
            margin-right: 10px;
            line-height: 28px;
            cursor: pointer;
        }

        .foot_span_show {
            margin-left: 9px;
        }

        .edit {
            color: #fff;
            font-size: 12px;

            margin-right: 10px;
            margin-left: 5px;
            line-height: 28px;
            cursor: pointer;
        }

        .search h1 :hover {
            cursor: pointer;
        }

        .deldel_img {
            float: right;
            height: 15px;
            margin-top: 7px;
        }

        .edit_img {
            float: right;
            height: 15px;
            margin-top: 7px;
        }

        .deldel_yulan {
            float: right;
            height: 15px;
            margin-top: 7px;
            margin-right: 0px;
            cursor: pointer;
            margin-left: -4px;
        }

        .new_excell_footer {
            width: 100%;
            height: 28px;
            position: relative;
            background-color: #59bdf0;
        }

        .new_excell_head {
            position: relative;
            width: 100%;
            height: 30px;
        }

        .new_excell_name {
            border-left: 4px solid #59bdf0;
            color: #59bdf0;
            position: absolute;
            bottom: 0;
            font-size: 16px;
            font-weight: 700;
            height: 24px;
            margin-left: 20px;
        }

        td{
            text-align: center;
        }

        .new_excell_info {
            width: 100%;
            height: 123px;
            position: relative;
        }

        .new_excell_center {
            margin-left: 6%;
            margin-top: 10px;
        }

        .new_excell_info_main {
            width: 100%;
            height: 62px;
            position: absolute;

        }

        .new_excell_info_other {
            position: absolute;
            top: 10px;
            height: 100%;
            margin-left: 45px;
            margin-top: 10px;
            list-style-type: none;
            left: 20%;
        }

        .new_excell_main {
            width: 332px;
            height: 181px;
            border: 1px solid #ddd;
            margin: auto;
            margin-top: 10px;
            border-radius: 5px;
        }

        .new_excell_main:hover {
            border: 2px solid #59bdf0;
        }

        .new_excell_info_mian_pic {
            float: left;
        }

        .new_excell {
            width: 360px;
            height: 191px;
            float: left;
            margin-left: 0px;
            margin-right: 0px;
        }

        .new_excell_info_other span {
            margin-left: 10px;
            color: black;
        }

        .new_excell_info_other li {
            height: 50%;
            line-height: 24px;
            font-size: 20px;
        }

        user agent stylesheet
        li {
            display: list-item;
            text-align: -webkit-match-parent;
        }

        .conter {
            width: 461px;
            height: 800px;
            margin: auto;
        }

        .f_field_title {
            display: inline-block;
            font-size: 12px;
            font-weight: bold;
            height: 18px;
            line-height: 41px;
            margin-left: 2px;
            margin-right: 2px;
        }

        .f_field_required {
            color: red;
            font-size: 12px;
            margin-top: 0px;
            margin-left: 2px;
            margin-right: 2px;
        }

        .Return{
            background: #00a0e9;
            margin-right: 40px;
            padding:5px 10px;
            margin-top: 10px;
            border-radius: 4px;
            color: #fff;
            cursor: pointer;
            float: right;
        }
        .ADD{
            float: right;
            background: #00a0e9;
            margin-top: 10px;
            margin-right: 50px;
            margin-bottom: 10px;
            padding:5px 10px;
            border-radius: 4px;
            color: #fff;
            cursor: pointer;
        }

        .f_field_ctrl {
            margin-top: 5px;
            margin-left: 2px;
            float: left;
        }

        select {

            height: 32px;
            width: 220px;
            border-radius: 4px;
            border: 1px solid #cccccc;
            background-color: #ffffff;
        }

        .f_field_title {
            font-size: 12px;
            font-weight: bold;
            margin-left: 2px;
            margin-right: 2px;
        }

        .f_field_required {
            color: red;
            font-size: 12px;
            margin-top: 0px;
            margin-left: 2px;
            margin-right: 2px;
        }

        .f_field_ctrl {
            margin-top: 5px;
            margin-left: 2px;
        }

        .f_field_ctrl input {
            color: #000;
        }

        .f_field_block {
            width: 100%;
            height: 68px;
            margin-top: 70px;
            margin-bottom: 4px;
            display: block;
            text-align: left;
        }

        .inp {
            width: 221px;
            height: 32px;
            border-radius: 4px;
        }


        .center {
            height: 400px !important;
        }

        .delete_flow, .edit_liucheng {
            cursor: pointer;
        }

        .layui-layer-title {
            padding: 0 80px 0 20px;
            height: 42px;
            line-height: 42px;
            border-bottom: 1px solid #eee;
            font-size: 16px;
            color: #fff;
            overflow: hidden;
            background-color: #2b7fe0;
            border-radius: 2px 2px 0 0;
        }

        .layui-layer-page .layui-layer-btn {
            padding-top: 10px;
            text-align: center;
        }
        .dpetWhole0{overflow: auto}
        dpetWhole0 li{white-space: nowrap;}


        .table table{
            width: 97%;
            margin:0 auto;
        }
        th{
            background-color: #fff;
            font-size: 15px;
            color: #2F5C8F;
            font-weight: bold;
            border: 0px;
            line-height:45px;
            text-align:left;
            padding-left:10px;
        }
        .titleName{
            cursor:pointer;
        }
        .red{
            color:red;
            font-weight:bold;
        }
        .M-box3 .active{
            margin: 0px 3px;
            width: 29px;
            height: 29px;
            line-height: 29px;
            background: #2b7fe0;
            font-size: 12px;
            border: 1px solid #2b7fe0;
            color:#fff;
            text-align:center;
            display: inline-block;
        }
        .M-box3 a{
            margin: 0 3px;
            width: 29px;
            height: 29px;
            line-height: 29px;
            font-size: 12px;
            display: inline-block;
            text-align:center;
            background: #fff;
            border: 1px solid #ebebeb;
            color: #bdbdbd;
            text-decoration: none;
        }
        th{
            text-align: center;
        }
        td{
            text-align: center;
        }

        .total{
            width: 98%;
            margin: auto;
            margin-top: 118px;
        }
        .navigation{
            background: none;

        }
        a {
            text-decoration: none;
            color: #207bd6;
            cursor: pointer;
        }
        select{
            padding: 5px 8px !important;
        }
        td{
            font-size: 14px;
            line-height: 19px;
            word-break: keep-all;
            white-space: nowrap;
            text-overflow: ellipsis;
            -webkit-box-orient: vertical;
            overflow: hidden;
            text-align: center;
        }
        .query {
            width: 550px;
            margin: 133px auto;
        }
        b{
            color: red;
        }

        .all{
            padding-left: 38px;
            display: none;
        }
        .all li{
            margin: 5px 0;
        }

        .btnsava {
            padding: 5px 15px;
            border-radius: 4px;
            background: #2b7fe0;
            color: #fff;
        }

        .inputlayout > ul > li{
            padding: 10px 10px;
        }

        .ss{margin-top:9px;position: relative;}
        .ss a{font-size: 14px;display: block;font-family: 微软雅黑;letter-spacing: 1px;position: absolute;left: 25px;top: 1px;color: #fff;}
        .one{width:90px;height: 28px;background: url("../img/file/cabinet01.png") no-repeat;}
        .one a{height: 28px;  line-height: 28px;}
        .two{width:90px;height: 28px;background: url("../img/file/cabinet02.png") no-repeat;}
        .two a{height: 28px;  line-height: 28px;}
        .three{width: 70px;height: 28px;background: url("../img/file/cabinet03.png") no-repeat;}
        .three a{height: 28px;  line-height: 26px;color:#000;left:30px;}
        .four{width: 90px;height: 28px;background: url("../img/file/cabinet04.png") no-repeat;}
        .four a{height: 28px;  line-height: 26px;color:#000;}
        .editBtn{margin-right: 10px;}
        .boto{margin-top: 8px;}
        .boto a{display:inline-block;width: 56px;height:24px;position: relative;}
        .boto a span{position:absolute;display:block;height:24px;top:0px;left:22px;line-height:24px;text-align: center;letter-spacing: 2px;}
        .boto a.ONE{background: url("../img/file/cabinet07.png") no-repeat;}
        .boto a.TWO{background: url("../img/file/cabinet09.png") no-repeat;}
        .boto a.THREE{background: url("../img/file/cabinet10.png") no-repeat;}
        .boto a.FOURs{background: url("../img/file/cabinet12.png") no-repeat;}
        .boto a.FiveOne{background: url("../img/file/cabinet11.png") no-repeat;}
        .boto a.SIX{background: url("../img/file/icon_paste.png") no-repeat;}

        .TITLE{margin-left: 10px;color: #2B7FE0;}
        .attach{margin-top: 20px;padding-left: 5px;}
        .remind,.share,.inPole{margin-top: 20px;}
        .divBtn{margin-top: 10px;width: 100%;overflow: hidden;}
        .start,.cancle{float: left;width: 50px;border:#ccc 1px solid;padding: 5px;border-radius: 5px;color:#000;margin-left: 10px;cursor: pointer;}
        .floderOperation{width:100%;}
        .selected{margin-top: 10px;width: 80px;height: 26px;position: relative;}
        .selected .doTitle{width:126px;height: 28px;line-height: 28px;cursor: pointer;background: url("../img/file/icon_setfiles_07.png") no-repeat;}

        .tree-title{
            color:#333;
            font-size: 14px;
        }
        .span_1{
            font-size: 16px;
            color: #333;
        }
        .span_2{
            margin-left: 5%;
        }
        .div_1{
            height: 40px;
            width:100%;
            font-size:16px;
            text-align: left;
            color: #333;
            cursor: pointer;
            line-height:40px;
            border-bottom: #ddd 1px solid;
        }
        .span_left{
            margin-left: 5%;
        }

        ul li{
            margin: 12px 0;
        }
        .info .colo {
            background: #e8f4fc!important;
            color: #313131;
            text-align: left;
            line-height:34px!important;
        }
        .info tr{
            border:none
        }
        .info input[type=text]{
            width:80%;
            height:28px;
            border:1px solid #e3e3e8;
        }
        .info tr td:nth-child(2n-1){
            text-align: right;
        }
        .info tr td:nth-child(2n){
            text-align: left;
        }
        #save{
            background: url(../../img/vote/saveBlue.png) no-repeat;
            color: #fff;
            line-height: 30px;
            font-size: 16px;
            width: 91px;
            height: 30px;
            cursor: pointer;
            padding-left: 4px;
            display: inline-block;
        }
        #back{
            color: #000;
            width: 87px;
            line-height: 30px;
            height: 30px;
            cursor: pointer;
            font-size: 16px;
            background: url(../../img/vote/new.png) no-repeat;
            padding-left: 4px;
            display: inline-block;
        }
        input[type=radio]{
            width:16px;
            height: 16px;
        }

    </style>
</head>
<body style="overflow:scroll;overflow-y: hidden;overflow-x:hidden;">

<div class="wrap" style="margin-left:0px !important;">
    <div class="head" style="height:45px;">
        <div class="head_left">
            <img src="/img/edu/eduSchoolCalendar/home.png" alt="">
            <h1>党费管理</h1>
            <%--<h1>班级/成员单位管理</h1>--%>
        </div>
    </div>

    <div class="cont">
        <div class="cont_left" id="cont_left">
            <div id="fileTransfor" style="cursor: pointer; width: 100%;border-bottom: #ddd 1px solid;line-height:40px;">
                <span class='span_2 tree-icon tree-folder' style="display: inline-block;margin-top: 10px;"></span>
                <span class="span_1">全部</span>
               <%-- <ul class="depository" style="margin-left: 10px;    margin-top: -14px;">

                </ul>--%>
            </div>
        </div>

        <div class="cont_rig">
            <div class="tableList" >
                <!-- 班级右侧页面 -->
                <div class="maintop clearfix" style="margin-top: 10px;">
                    <button  type="button" class="ADD">新建</button>
                </div>
                <div class="table">
                    <table>
                        <thead>
                        <tr>
                            <th>党组织</th>
                            <th>党员代码</th>
                            <th>党员姓名</th>
                            <th>党员身份</th>
                            <th>负责人</th>
                            <th>交纳基数</th>
                            <th>交纳比例</th>
                            <th>操作</th>
                        </tr>
                        </thead>
                        <tbody class="list">

                        </tbody>
                    </table>
                </div>
            </div>
            <div class="info" style="display: none;">
                <form action="/partyMember/addPartyMember" id="info">
                    <table>
                      <%--  <tr >
                            <th class="colo" style="width: 15%;"><span style="font-weight: bold">基本信息</span></th>
                            <th class="colo" ></th>
                            <th class="colo" style="width: 15%;"></th>
                            <th class="colo" ></th>
                        </tr>--%>
                        <tr>
                            <td>党员代码：</td>
                            <td>
                                <input type="text" name="memberCode">
                            </td>
                            <td>党员姓名：</td>
                            <td>
                                <input type="text" name="memberName">
                            </td>
                        </tr>
                        <tr>
                            <td>党组织代码：</td>
                            <td>
                                <input type="text" name="pCode">
                            </td>
                            <td>党组织名称：</td>
                            <td>
                                <input type="text" name="pName">
                            </td>
                        </tr>
                        <tr>
                            <td>党员身份：</td>
                            <td>
                                <input type="radio" name="memberFlag" value="学生">学生
                                <input type="radio" name="memberFlag" value="职工">职工
                            </td>
                            <td>缴费时间：</td>
                            <td>
                                <input type="text" name="payTime" onclick="laydate({istime: true, format: 'YYYY-MM-DD'})">
                            </td>
                        </tr>
                        <tr>
                            <td>职务工资：</td>
                            <td>
                                <input type="text" name="postSalary">
                            </td>
                            <td>级别工资：</td>
                            <td>
                                <input type="text" name="rankSalary">
                            </td>
                        </tr>
                        <tr>
                            <td>工作性补贴：</td>
                            <td>
                                <input type="text" name="jobSubsidy">
                            </td>
                            <td>生活性补贴：</td>
                            <td>
                                <input type="text" name="lifeSalary">
                            </td>

                        </tr>
                        <tr>
                            <td>住房公积金：</td>
                            <td>
                                <input type="text" name="housingFund">
                            </td>
                            <td>个人所得税：</td>
                            <td>
                                <input type="text" name="tax">
                            </td>
                        </tr>
                        <tr>
                            <td>交纳基数：</td>
                            <td>
                                <input type="text" name="payBase">
                            </td>
                            <td>交纳比例：</td>
                            <td>
                                <input type="text" name="payRadio">
                            </td>
                        </tr>
                        <tr>
                            <td>补交时间：</td>
                            <td>
                                <input type="text" name="pOrigin">
                            </td>

                            <td>补交党费：</td>
                            <td>
                                <input type="text" name="origin">
                            </td>
                        </tr>
                        <tr>
                            <td>补交原因：</td>
                            <td>
                                <input type="text" name="marriage">
                            </td>
                            <td>补交金额：</td>
                            <td>
                                <input type="text" name="regist">
                            </td>
                        </tr>
                        <tr>
                            <td colspan="4" style="text-align: center">
                                <span id="save" type="0">保存</span>
                                <span id="back">返回</span>
                            </td>
                        </tr>

                    </table>
                </form>
            </div>



        </div>
    </div>
</div>
</body>
<script type="text/javascript">



    var gradeId='';
    var className='';
    var type=0;
    var pro=0;
    $(function () {
        //加载左侧树形结构（学段）
        $.ajax({
            type: 'post',
            url: "/eduLearnPhase/selEduLearnPhase",
            dataType: 'json',
            success: function (res) {
                var data = res.obj;
                var str = "";
                if (res.flag == true) {
                    if (data != undefined) {
                        for (var i = 0; i < data.length; i++) {
                            str += "<li class='depositoryId' depositoryId='" + data[i].id + "'>" +
                                "<div class='tree-node' node-id='" + data[i].id + "' style='cursor: pointer'>" +
                                "<span class='tree-hit tree-collapsed'></span>" +
                                "<span class='tree-icon tree-folder'></span>" +
                                "<span class='tree-title'>" + data[i].name + "</span>" +
                                "</div>" +
                                "<div style='margin-left: 20px;'>"+
                                "<ul class='proType' style='display: none'>" +
                                "</ul>" +
                                "</div>"+
                                "</li>";
                        }
                    }
                    $('.depository').html(str);
                }
            }
        })
    })
    //点击办学段显示年级
    $(".depository").on('click','.depositoryId',function (e) {
        e.stopPropagation();
        var that=$(this);
        if(type==0){
            //第二层
            $.ajax({
                type:'post',
                url:"/eduGrade/selectAll",
                dataType:'json',
                data:{
                    learnPhaseId:$(this).attr("depositoryId")
                },
                success:function(res) {
                    var data = res.obj;
                    var str = "";
                    if (res.flag == true) {
                        for (var i = 0; i < data.length; i++) {
                            str += "<li class='proTypeId' value='"+ data[i].aliasName+"' url='/officeSupplies/goOfficeList?typeId="+data[i].id+"' proTypeId='" + data[i].id + "'>" +
                                "<div class='tree-node' node-id='" + data[i].id + "' style='cursor: pointer'>" +
                                "<span class='tree-hit tree-collapsed'></span>" +
                                "<span class='tree-icon tree-folder'></span>" +
                                "<span class='tree-title'>" + data[i].aliasName + "</span>" +
                                "</div>" +
                                "<div style='margin-left: 20px;'>"+
                                "<ul class='pro' style='display: none'>" +
                                "</ul>" +
                                "</div>"+
                                "</li>";
                        }
                        that.find('.proType').html(str);
                        that.find(".proType").show();
                        type=1;
                    }
                }
            })
        }else{
            that.find(".proType").hide();
            type=0;
        }

    })

    //点击年级显示班级
    $(".depository").on('click','.proTypeId',function (e) {
        e.stopPropagation();
        var that=$(this);
        //第三层
        if(pro==0){
            $.ajax({
                type:'post',
                url:"/eduClass/selEduClass",
                dataType:'json',
                data:{
                    gradeId:that.attr("proTypeId")
                },
                success:function(res){
                    var data=res.obj;
                    var str="";
                    if(res.flag==true){
                        if(data!=undefined){
                            for(var i=0;i<data.length;i++){
                                str+="<li class='proId' value='"+data[i].name+"' cid='"+data[i].classId+"'>" +
                                    "<div class='tree-node' node-id='"+data[i].proId+"' style='cursor: pointer'>" +
                                    "<span class='tree-title'>"+data[i].name+"</span>"+
                                    "</div>" +
                                    "</li>";
                            }
                        }
                        that.find('.pro').html(str);
                        that.find(".pro").show();
                        pro=1;
                    }
                }
            })
        }else{
            that.find(".pro").hide();
            pro=0;
        }
    })

    function hf(me) {
        gradeId = me;
        ajaxPageLe.data.gradeId=me;
        ajaxPageLe.page();
    }
    //点击学段刷新右侧
    $(".depository").on('click','.depositoryId',function (e) {
        e.stopPropagation();
        var that=$(this);
        ajaxPageLe.data.timeInterval=that.attr('depositoryid');
        ajaxPageLe.data.className="";
        ajaxPageLe.data.grade="";
        ajaxPageLe.page();
    })
    //    点击年级刷新右侧
    $(".depository").on('click','.proTypeId',function (e) {
        e.stopPropagation();
        var that=$(this);
        ajaxPageLe.data.timeInterval="";
        ajaxPageLe.data.grade=that.attr('value');
        ajaxPageLe.data.className="";
        ajaxPageLe.page();
    })

    //点击班级刷新右侧
    $(".depository").on('click','.proId',function (e) {
        e.stopPropagation();
        var that=$(this);
        ajaxPageLe.data.timeInterval="";
        ajaxPageLe.data.grade="";
        ajaxPageLe.data.className=that.attr('value');
        ajaxPageLe.page();
    })

    function check(name){
        if(name == undefined){
            return '';
        }else{
            return name;
        }
    }



    //        列表带分页
    var ajaxPageLe={
        data:{
            page:1,//当前处于第几页
            pageSize:10,//一页显示几条
            useFlag:true
//            className:className
        },
        page:function () {
            var me=this;
            $.ajax({
                url:'/partyDues/selectAllDues',
                type:'get',
                data:me.data,
                dateType:'json',
                success:function(reg){

                    var data=reg.obj;
                    var str=""
                    for(var i=0;i<data.length;i++){
                        str+='<tr id="'+data[i].id+'">' +
                            '                            <td>'+check(data[i].pName)+'</td>' +
                            '                            <td>'+check(data[i].memberCode)+'</td>' +
                            '                            <td>'+check(data[i].memberName)+'</td>' +
                            '                            <td>'+check(data[i].memberFlag)+'</td>' +
                            '                            <td>'+check(data[i].takeCharge)+'</td>' +
                            '                            <td>'+check(data[i].payBase)+'</td>' +
                            '                            <td>'+check(data[i].payRadio)+'</td>' +
                            '                            <td>' +
                            '<a href="javascript:;" class="detail">查看</a>' +
                            '<a href="javascript:;" class="bianJi">编辑</a>' +
                            '<a href="javascript:;" class="del">删除</a></td>' +
                            '                            </tr>'

                    }
                    $('.list').html(str);
                    me.pageTwo(reg.totleNum,me.data.pageSize,me.data.page);
                }
            })

        },
        pageTwo:function (totalData, pageSize,indexs) {
            var mes=this;
            $('#dbgz_page').pagination({
                totalData: totalData,
                showData: pageSize,
                jump: true,
                coping: true,
                homePage:'',
                endPage: '',
                current:indexs||1,
                callback: function (index) {
                    mes.data.page=index.getCurrent();
                    mes.page();
                }
            });
        }
    }
    ajaxPageLe.page();

    //    点击查看详情
    function detail(id){
        $.ajax({
            url:'/partyMember/selectById',
            data:{id:id},
            dataType:'json',
            success:function(res){
                var data=res.object;
                $('input[name="memberCode"]').val(data.memberCode);
                $('input[name="memberName"]').val(data.memberName);
                $('input[name="pCode"]').val(data.pCode);
                $('input[name="pName"]').val(data.pName);
                $('input[name="memberFlag"]').val(data.idCard);
                $('input[name="postSalary"]').val(data.birth);
                $('input[name="rankSalary"]').val(data.education);
                $('input[name="jobSubsidy"]').val(data.health);
                $('input[name="lifeSubsidy"]').val(data.political);
                $('input[name="housingFund"]').val(data.type);
                $('input[name="tax"]').val(data.joinDate);
                $('input[name="payTime"]').val(data.formalTime);
                $('input[name="takeCharge"]').val(data.pId);
                $('input[name="pSec"]').val(data.pSec);
                $('input[name="pOrigin"]').val(data.pOrigin);
                $('input[name="origin"]').val(data.origin);
                $('input[name="marriage"]').val(data.marriage);
                $('input[name="regist"]').val(data.regist);
                $('input[name="message"]').val(data.message);
                $('input[name="address"]').val(data.address);
                $('input[name="phone"]').val(data.phone);
                $('input[name="mobile"]').val(data.mobile);
                $('input[name="jobDate"]').val(data.jobDate);
                $('input[name="workAddress"]').val(data.workAddress);
                $('input[name="workPost"]').val(data.workPost);
                $('input[name="filePosttion"]').val(data.filePosttion);
                $('input[name="otherParty"]').val(data.otherParty);
                $('input[name="otherPartyDate"]').val(data.otherPartyDate);
                $('input[name="phone"]').val(data.phone);
                $('input[name="phone"]').val(data.idValidity);
                $('input[name="schoolStatus"]').val(data.schoolStatus);
                $('input[name="outDate"]').val(data.outDate);
                $('input[name="eduName"]').val(data.eduName);
                $('input[name="entranceDate"]').val(data.entranceDate);
                $('input[name="eduEndPost"]').val(data.eduEndPost);
                $('input[name="eduEndDate"]').val(data.eduEndDate);
                $('input[name="diplomaCode"]').val(data.diplomaCode);
                $('input[name="degreeName"]').val(data.degreeName);
                $('input[name="status"]').val(data.status);
                $('input[name="remark"]').val(data.remark);

            }
        })
    }

    //    清空
    function refresh(){
        $('input[name="byName"]').val('');
        $('input[name="name"]').val('');
        $('input[name="sex"]').val('');
        $('input[name="nation"]').val('');
        $('input[name="idCard"]').val('');
        $('input[name="birth"]').val('');
        $('input[name="education"]').val('');
        $('input[name="health"]').val('');
        $('input[name="political"]').val('');
        $('input[name="type"]').val('');
        $('input[name="joinDate"]').val('');
        $('input[name="formalTime"]').val('');
        $('input[name="pId"]').val('');
        $('#eduType').val('')
        $('input[name="pSec"]').val('');
        $('input[name="pOrigin"]').val('');
        $('input[name="origin"]').val('');
        $('input[name="marriage"]').val('');
        $('input[name="regist"]').val('');
        $('input[name="message"]').val('');
        $('input[name="address"]').val('');
        $('input[name="phone"]').val('');
        $('input[name="mobile"]').val('');
        $('input[name="jobDate"]').val('');
        $('input[name="workAddress"]').val('');
        $('input[name="workPost"]').val('');
        $('input[name="filePosttion"]').val('');
        $('input[name="otherParty"]').val('');
        $('input[name="otherPartyDate"]').val('');
        $('input[name="phone"]').val('');
        $('input[name="schoolStatus"]').val('');
        $('input[name="outDate"]').val('');
        $('input[name="eduName"]').val('');
        $('input[name="entranceDate"]').val('');
        $('input[name="eduEndPost"]').val('');
        $('input[name="eduEndDate"]').val('');
        $('input[name="diplomaCode"]').val('');
        $('input[name="degreeName"]').val('');
        $('input[name="status"]').val('');
        $('input[name="remark"]').val('');
    }


    //    点击导出
    $('#outport').click(function(){
        window.location.href='/eduAttend/selectLeaveAll?export=1&term='+$('#term option:selected').val()+'&leaveStart='+$('#startTime').val()+'&leaveEnd='+$('#endTime').val();
    })
    //    点击新建
    $('.ADD').click(function(){
        refresh();
        $('#info').attr('action','/partyDues/addPartyDues')
        $('#save').attr('type','0')
        $('.tableList').hide();
        $('.info').show();
    })
    //点击返回
    $('#back').click(function(){
        $('.tableList').show();
        $('.info').hide();
    })
    //    点击保存
    $('#save').click(function(){
        if($(this).attr('type')==0){
            $('#info').ajaxSubmit({
                type:'post',
                dataType:'json',
                success:function(res){
                    if(res.flag){
                        $.layerMsg({content:'新建成功',icon:1});
                        $('.tableList').show();
                        $('.info').hide();
                        ajaxPageLe.page();
                    }else{
                        if(res.msg=="登录名重复，请重新填写"){
                            $.layerMsg({content:'登录名重复，请重新填写',icon:2})
                        }else {
                            $.layerMsg({content:'新建失败',icon:2})
                        }
                    }
                }
            })
        }else{
            $('#info').ajaxSubmit({
                type:'post',
                dataType:'json',
                success:function(res){
                    if(res.flag){
                        $.layerMsg({content:'编辑成功',icon:1});
                        $('.tableList').show();
                        $('.info').hide();
                        ajaxPageLe.page();
                    }else{
                        $.layerMsg({content:'编辑失败',icon:2})
                    }
                }
            })
        }

    })
    //    点击编辑
    $(document).on('click','.bianJi',function(){
        refresh();
        var id=$(this).parents('tr').attr('id');
        $('#info').attr('action','/partyMember/editPartyMemberById?id='+id)
        $('#save').attr('type','1')
        $('.tableList').hide();
        $('.info').show();

        detail(id);
    })
    //    点击查看
    $(document).on('click','.detail',function(){
        refresh();
        $('#save').hide();
        $('.tableList').hide();
        $('.info').show();
        var id=$(this).parents('tr').attr('id');
        detail(id);
    })
    //    点击删除
    $(document).on('click','.del',function(){
        var id=$(this).parents('tr').attr('id');
        layer.confirm(' <fmt:message  code="workflow.th.que"/>', {
            btn: [' <fmt:message  code="global.lang.ok"/>', ' <fmt:message  code="depatement.th.quxiao"/>'], //按钮
            title: " <fmt:message code="common.th.prompt" />"
        },function(){
            $.ajax({
                url:'/partyMember/delPartyMemberById',
                type:'post',
                dataType:'json',
                data:{id:id},
                success:function(res){
                    if(res.flag){
                        layer.msg(' <fmt:message  code="workflow.th.delsucess"/>', {icon: 6});
                        ajaxPageLe.page()
                    }else{
                        layer.msg('删除失败', {icon: 6});
                    }

                }
            })
        }, function () {
            layer.closeAll();
        })
    })

















































</script>

</html>
